﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using Model;
using MsDAL;
using System.ComponentModel;

namespace ServiceHelper
{
   [DataObjectAttribute]
   public  partial  class Buy0a00Manager:Buy0a00Base
    {
		private static Buy0a00Manager _entity;
		
        public static Buy0a00Manager Entity
        {
            get
            {
                if (_entity == null)
                    _entity = new Buy0a00Manager();
                return _entity;
            }
        }

        #region 个人代码
        public string SaveData(Hashtable tb, string action, string usercode)
        {
            List<SqlApp> lst = new List<SqlApp>();

            Buy0a00 model = null;
            if ("A" == action)
            {
                model = new Buy0a00();
                Components.CommonUtil.GetInstance.CopyProperties(tb, model);
                //添加维护者信息
                model.Usercode = Context.GetAppByUserCode(usercode);

                //生成主键标识
                model.Listid = Sys0a60Manager.Entity.CreateSn("buy0a00_listid", usercode);
                //执行新增
                lst.Add(this.Add(model));
            }

            return CommonManager.Entity.SaveData(lst);
        }
        #endregion
    }
}



